﻿namespace zijian666.Data;

public class DbEntityInterceptorContext : DbInterceptorContext
{
    public object[] Entities { get; }

    public Func<PropertyInfo, bool>? Filter { get; set; }

    public DbEntityInterceptorContext(IDbConnection conn, object[] entities, CancellationToken cancellationToken)
        : base(conn, Stopwatch.GetTimestamp(), cancellationToken)
    {
        Entities = entities;
    }
}